--- src/lib/openmj2/opj_malloc.h.orig	2014-04-22 07:54:19.000000000 +0000
+++ src/lib/openmj2/opj_malloc.h	2014-04-25 21:40:57.000000000 +0000
@@ -87,8 +87,7 @@
     #define HAVE_POSIX_MEMALIGN
 	/* Linux x86_64 and OSX always align allocations to 16 bytes */
 	#elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
-		#define HAVE_MEMALIGN
-		#include <malloc.h>			
+		#include <stdlib.h>
 	#endif
 #endif
 
